package org.atguigu.spring6.iocxml.factorybean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.cglib.proxy.Factory;

public class MyFactoryBean implements FactoryBean<User> {

    @Override
    public User getObject() throws Exception {
        return new User();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
